<?php
/**
 * exception for Application
 *
 * @author bbqq <toughgamer@gmail.com>
 * @package com.blib.data
 * @copyright bbqq qstufie.com
 */
class Blib_Exception_App extends Blib_Exception
{
	/**
	 * the dead class...
	 *
	 * @var Blib_Data_Model_Base
	 */
	private $_class = null;


	/**
	 * the input
	 * @var mixed
	 */
	private $_input = null;


    /**
     * constructor
     *
     * @return void
     */
	public function __construct($message = 'Model Exception', $code = 0, $model = null)
	{
		$this->_class = $model;
        if (Blib::isCli()) {
            $this->_input = $_SERVER['argv'];
        } else {
            $this->_input = array(
                'post' => $_POST,
                'get'  => $_GET,
                'url'  => $_SERVER['REQUEST_URI'],
            );
        }
		parent::__construct($message, $code);

	}// end __construct


	/**
	 * get input
	 *
	 * @return mixed
	 */
	public function getInput()
	{
		return $this->_input;

	}// end getInput

}// end Blib_Exception_App
?>